package com.blb.marry.service.Impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.blb.marry.entity.Room;
import com.blb.marry.mapper.RoomMapper;
import com.blb.marry.service.RoomService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author lvtian
 * @date 2023/1/16 12:40
 */
@Service
public class RoomServiceImpl extends ServiceImpl<RoomMapper, Room> implements RoomService {
    @Autowired
    private RoomMapper roomMapper;

    @Override
    public List<Room> getRoomById(Long tbHotelHotelId) {
        List<Room> rooms = roomMapper.selectRoomById(tbHotelHotelId);
        return rooms;
    }
}
